package org.jeecg.modules.flow.service;

/**
 * 流程事件消息服务
 */
public interface FlowEventMsgService {

    /**
     * 发送流程结束事件消息
     *
     * @param processInstanceId
     * @param businessKey
     */
    void sendProcessCompletedMsg(String processInstanceId, String businessKey);

    /**
     * 发送流程终止事件消息
     *
     * @param processInstanceId
     * @param businessKey
     */
    void sendProcessCancelledMsg(String processInstanceId, String businessKey);

    /**
     * 发送任务完成事件消息
     *
     * @param processInstanceId
     * @param taskId
     * @param businessKey
     */
    void sendTaskCompletedMsg(String processInstanceId, String taskId, String businessKey);
}
